/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * JEVEMEOREChartBox.java
 *
 * Created on Jun 21, 2011, 12:07:58 PM
 */
package jeveme;

/**
 *
 * @author ruizr
 */
public class JEVEMeOREChartBox extends javax.swing.JDialog {

    /** Creates new form JEVEMEOREChartBox */
    public JEVEMeOREChartBox(java.awt.Frame parent, boolean modal) {
        super(parent, modal);
        initComponents();
        
        //Set First Column width larger
        oreTable.getColumnModel().getColumn(0).setPreferredWidth(200);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        oreTable = new javax.swing.JTable();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(jeveme.JEVEMeApp.class).getContext().getResourceMap(JEVEMeOREChartBox.class);
        setTitle(resourceMap.getString("Form.title")); // NOI18N
        setName("Form"); // NOI18N

        jPanel1.setName("jPanel1"); // NOI18N

        jScrollPane1.setName("jScrollPane1"); // NOI18N

        oreTable.setAutoCreateRowSorter(true);
        oreTable.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {"Veldspar", new Integer(333), new Integer(1000), new Integer(0), new Integer(0), new Integer(0), new Integer(0), new Integer(0), new Integer(0), new Integer(0)},
                {"Concentrated Veldspar", new Integer(333), new Integer(1050), new Integer(0), new Integer(0), new Integer(0), new Integer(0), new Integer(0), new Integer(0), new Integer(0)},
                {"Dense Veldspar", new Integer(333), new Integer(1100), new Integer(0), new Integer(0), new Integer(0), new Integer(0), new Integer(0), new Integer(0), new Integer(0)},
                {"Scordite", new Integer(333), new Integer(833), new Integer(416), new Integer(0), new Integer(0), new Integer(0), new Integer(0), new Integer(0), new Integer(0)},
                {"Condensed Scordite", new Integer(333), new Integer(875), new Integer(437), new Integer(0), new Integer(0), new Integer(0), new Integer(0), new Integer(0), new Integer(0)},
                {"Massive Scordite", new Integer(333), new Integer(916), new Integer(458), new Integer(0), new Integer(0), new Integer(0), new Integer(0), new Integer(0), new Integer(0)},
                {"Pyroxeres", new Integer(333), new Integer(844), new Integer(59), new Integer(120), new Integer(0), new Integer(11), new Integer(0), new Integer(0), new Integer(0)},
                {"Solid Pyroxeres", new Integer(333), new Integer(886), new Integer(62), new Integer(126), new Integer(0), new Integer(12), new Integer(0), new Integer(0), new Integer(0)},
                {"Viscous Pyroxeres", new Integer(333), new Integer(928), new Integer(65), new Integer(132), new Integer(0), new Integer(12), new Integer(0), new Integer(0), new Integer(0)},
                {"Plagioclase", new Integer(333), new Integer(256), new Integer(512), new Integer(256), new Integer(0), new Integer(0), new Integer(0), new Integer(0), new Integer(0)},
                {"Azure Plagioclase", new Integer(333), new Integer(269), new Integer(538), new Integer(269), new Integer(0), new Integer(0), new Integer(0), new Integer(0), new Integer(0)},
                {"Rich Plagioclase", new Integer(333), new Integer(282), new Integer(563), new Integer(282), new Integer(0), new Integer(0), new Integer(0), new Integer(0), new Integer(0)},
                {"Omber", new Integer(500), new Integer(307), new Integer(123), new Integer(0), new Integer(307), new Integer(0), new Integer(0), new Integer(0), new Integer(0)},
                {"Silvery Omber", new Integer(500), new Integer(322), new Integer(129), new Integer(0), new Integer(322), new Integer(0), new Integer(0), new Integer(0), new Integer(0)},
                {"Golden Omber", new Integer(500), new Integer(338), new Integer(135), new Integer(0), new Integer(338), new Integer(0), new Integer(0), new Integer(0), new Integer(0)},
                {"Kernite", new Integer(400), new Integer(386), new Integer(0), new Integer(773), new Integer(386), new Integer(0), new Integer(0), new Integer(0), new Integer(0)},
                {"Luminous Kernite", new Integer(400), new Integer(405), new Integer(0), new Integer(812), new Integer(405), new Integer(0), new Integer(0), new Integer(0), new Integer(0)},
                {"Fiery Kernite", new Integer(400), new Integer(425), new Integer(0), new Integer(850), new Integer(425), new Integer(0), new Integer(0), new Integer(0), new Integer(0)},
                {"Jaspet", new Integer(500), new Integer(259), new Integer(259), new Integer(518), new Integer(0), new Integer(259), new Integer(8), new Integer(0), new Integer(0)},
                {"Pure Jaspet", new Integer(500), new Integer(272), new Integer(272), new Integer(544), new Integer(0), new Integer(272), new Integer(8), new Integer(0), new Integer(0)},
                {"Pristine Jaspet", new Integer(500), new Integer(285), new Integer(285), new Integer(570), new Integer(0), new Integer(285), new Integer(9), new Integer(0), new Integer(0)},
                {"Hemorphite", new Integer(500), new Integer(212), new Integer(0), new Integer(0), new Integer(212), new Integer(424), new Integer(28), new Integer(0), new Integer(0)},
                {"Vivid Hemorphite", new Integer(500), new Integer(223), new Integer(0), new Integer(0), new Integer(223), new Integer(445), new Integer(29), new Integer(0), new Integer(0)},
                {"Radiant Hemorphite", new Integer(500), new Integer(233), new Integer(0), new Integer(0), new Integer(233), new Integer(466), new Integer(31), new Integer(0), new Integer(0)},
                {"Hedbergite", new Integer(500), new Integer(0), new Integer(0), new Integer(0), new Integer(708), new Integer(354), new Integer(32), new Integer(0), new Integer(0)},
                {"Vitric Hedbergite", new Integer(500), new Integer(0), new Integer(0), new Integer(0), new Integer(743), new Integer(372), new Integer(34), new Integer(0), new Integer(0)},
                {"Glazed Hedbergite", new Integer(500), new Integer(0), new Integer(0), new Integer(0), new Integer(779), new Integer(389), new Integer(35), new Integer(0), new Integer(0)},
                {"Spodumain", new Integer(250), new Integer(700), new Integer(140), new Integer(0), new Integer(0), new Integer(0), new Integer(0), new Integer(140), new Integer(0)},
                {"Bright Spodumain", new Integer(250), new Integer(735), new Integer(147), new Integer(0), new Integer(0), new Integer(0), new Integer(0), new Integer(147), new Integer(0)},
                {"Gleaming Spodumain", new Integer(250), new Integer(770), new Integer(154), new Integer(0), new Integer(0), new Integer(0), new Integer(0), new Integer(154), new Integer(0)},
                {"Gneiss", new Integer(400), new Integer(171), new Integer(0), new Integer(171), new Integer(343), new Integer(0), new Integer(171), new Integer(0), new Integer(0)},
                {"Iridescent Gneiss", new Integer(400), new Integer(180), new Integer(0), new Integer(180), new Integer(360), new Integer(0), new Integer(180), new Integer(0), new Integer(0)},
                {"Prismatic Gneiss", new Integer(400), new Integer(188), new Integer(0), new Integer(188), new Integer(377), new Integer(0), new Integer(188), new Integer(0), new Integer(0)},
                {"Dark Ochre", new Integer(400), new Integer(250), new Integer(0), new Integer(0), new Integer(0), new Integer(500), new Integer(250), new Integer(0), new Integer(0)},
                {"Onyx Ochre", new Integer(400), new Integer(263), new Integer(0), new Integer(0), new Integer(0), new Integer(525), new Integer(263), new Integer(0), new Integer(0)},
                {"Obsidian Ochre", new Integer(400), new Integer(275), new Integer(0), new Integer(0), new Integer(0), new Integer(275), new Integer(275), new Integer(0), new Integer(0)},
                {"Crokite", new Integer(250), new Integer(331), new Integer(0), new Integer(0), new Integer(0), new Integer(331), new Integer(663), new Integer(0), new Integer(0)},
                {"Sharp Crokite", new Integer(250), new Integer(348), new Integer(0), new Integer(0), new Integer(0), new Integer(348), new Integer(696), new Integer(0), new Integer(0)},
                {"Crystalline Crokite", new Integer(250), new Integer(364), new Integer(0), new Integer(0), new Integer(0), new Integer(364), new Integer(729), new Integer(0), new Integer(0)},
                {"Bistot", new Integer(200), new Integer(0), new Integer(170), new Integer(0), new Integer(0), new Integer(0), new Integer(341), new Integer(170), new Integer(0)},
                {"Triclinic Bistot", new Integer(200), new Integer(0), new Integer(179), new Integer(0), new Integer(0), new Integer(0), new Integer(358), new Integer(179), new Integer(0)},
                {"Monoclinic Bistot", new Integer(200), new Integer(0), new Integer(187), new Integer(0), new Integer(0), new Integer(0), new Integer(375), new Integer(187), new Integer(0)},
                {"Arkonor", new Integer(200), new Integer(300), new Integer(0), new Integer(0), new Integer(0), new Integer(0), new Integer(166), new Integer(333), new Integer(0)},
                {"Crimson Arkonor", new Integer(200), new Integer(315), new Integer(0), new Integer(0), new Integer(0), new Integer(0), new Integer(174), new Integer(350), new Integer(0)},
                {"Prime Arkonor", new Integer(200), new Integer(330), new Integer(0), new Integer(0), new Integer(0), new Integer(0), new Integer(183), new Integer(366), new Integer(0)},
                {"Mercoxit", new Integer(250), new Integer(0), new Integer(0), new Integer(0), new Integer(0), new Integer(0), new Integer(0), new Integer(0), new Integer(530)},
                {"Magma Mercoxit", new Integer(250), new Integer(0), new Integer(0), new Integer(0), new Integer(0), new Integer(0), new Integer(0), new Integer(0), new Integer(557)},
                {"Vitreous Mercoxit", new Integer(250), new Integer(0), new Integer(0), new Integer(0), new Integer(0), new Integer(0), new Integer(0), new Integer(0), new Integer(583)}
            },
            new String [] {
                "ORE Type", "Batch Size", "Tritanium", "Pyerite", "Mexallon", "Isogen", "Nocxium", "Zydrine", "Megacyte", "Morphite"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.String.class, java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class
            };
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false, false, false, false, false, false
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        oreTable.setName("oreTable"); // NOI18N
        jScrollPane1.setViewportView(oreTable);

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 770, Short.MAX_VALUE)
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 806, Short.MAX_VALUE)
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                JEVEMeOREChartBox dialog = new JEVEMeOREChartBox(new javax.swing.JFrame(), true);
                dialog.addWindowListener(new java.awt.event.WindowAdapter() {

                    public void windowClosing(java.awt.event.WindowEvent e) {
                        System.exit(0);
                    }
                });
                dialog.setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JPanel jPanel1;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTable oreTable;
    // End of variables declaration//GEN-END:variables
}
